import { getInfo, setInfo } from '@/utils/storage'

const state = {
  userInfo: getInfo()
//   {
//     token: '',
//     userId: ''
//   }
}
const mutations = {
  setUserInfo (state, obj) {
    state.userInfo = obj
    setInfo(obj)
  }
}
const getters = {

}
const actions = {

}
export default {
  namespaced: true,
  state,
  mutations,
  getters,
  actions
}
